import { defineStore } from "pinia";

type ChivesStore = {
  fund: string[];
  stock: string[];
};

export const useChivesStore = defineStore("optional", {
  state: (): ChivesStore => {
    return {
      fund: [],
      stock: [],
    };
  },
  actions: {
    setFund(payload: string[]) {
      this.fund = payload;
    },
    setStock(payload: string[]) {
      this.stock = payload;
    },
  },
});
